package com.candy.candylog.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * </p>
 *
 * @author suyanlong
 * @since 2022-10-25
 */
@Data
@TableName("log_link")
//@ApiModel(value = "LogLink对象", description = "")
public class LogLink implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    private String serviceName;

    private String method;

    private Long traceId;

    private String requestUrl;

    private String requestParam;

    private String requestBody;

    private String responseData;

    private LocalDateTime createTime;

    @TableField(exist = false)
    private Integer num;

    @Override
    public String toString() {
        return "LogLink{" +
                "id=" + id +
                ", serviceName=" + serviceName +
                ", method=" + method +
                ", requestData=" + requestParam +
                ", requestBody=" + requestBody +
                ", responseData=" + responseData +
                ", createTime=" + createTime +
                "}";
    }

}
